package halma;
// ����
public class Coordinate {
	public int x;
	public int y;
	public Integer type;// 0Ϊ���ڵ� 1��ͨ�ڵ㣬2ΪҶ�ڵ�

	boolean isEquals(Coordinate c) {
		if (x == c.getX() && y == c.getY())
			return true;
		return false;
	}

	Coordinate(int x, int y, Integer type) {
		this.x = x;
		this.y = y;
		this.type = type;
	}

	Coordinate(int x, int y) {
		this.x = x;
		this.y = y;
	}

	public int getX() {
		return x;
	}

	public void setX(int x) {
		this.x = x;
	}

	public int getY() {
		return y;
	}

	public void setY(int y) {
		this.y = y;
	}

	public Integer getType() {
		return type;
	}

	public void setType(Integer type) {
		this.type = type;
	}
}